/<template>
  <div>
    <ul>
      <li v-for="(item,index) in list" :key="index">
        <Item :item=item></Item>
      </li>
    </ul>
  </div>
</template>

<script>
import axios from 'axios';
import Item from '../../components/Item.vue';
export default {
  components: { Item },
  data(){
    return{
      list:[]
    }
  },
  mounted(){
    axios.get('/list').then(res=>{
      this.list=res.data
    })
  }
}
</script>

<style>

</style>